import { qiankunWindow } from "vite-plugin-qiankun/dist/helper";
import { createRouter, createWebHistory } from "vue-router";
import App from "@/App.vue";

const routes = [
  {
    path: "/",
    name: "Home",
    component: App,
  },
];

const router = createRouter({
  history: createWebHistory(qiankunWindow.__POWERED_BY_QIANKUN__ ? "/vue" : "/"),
  routes,
});

export default router;
